home *** CD-ROM | disk | FTP | other *** search
- -- card: 5723 from stack: in
- -- bmap block id: 6138
- -- flags: 4000
- -- background id: 4129
- -- name: monitor
- ----- HyperTalk script -----
- on openCard
- scrollToBottom "card field trace of this card"
- scrollToBottom "card field facts of this card"
- scrollToBottom "card field stack of this card"
- end openCard
-
-
-
- -- part 1 (field)
- -- low flags: 01
- -- high flags: 0007
- -- rect: left=6 top=17 right=160 bottom=506
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 22
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: trace
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=396 top=324 right=339 bottom=471
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: continue
- ----- HyperTalk script -----
- on mouseUp
- global direction
-
- chain direction
- end mouseUp
-
-
-
- -- part 4 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=396 top=307 right=322 bottom=471
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: init
- ----- HyperTalk script -----
- on mouseUp
- global direction, ilsi_trace, ilsi_facts, ilsi_stack, ilsi_step
-
- put "" into card field "trace"
- put "" into card field "facts"
- put "" into card field "stack"
- if hilight of card button "trace" = false then
- put "" into ilsi_trace
- put "" into ilsi_facts
- put "" into ilsi_stack
- else
- put "card field trace of card monitor" into ilsi_trace
- put "card field facts of card monitor" into ilsi_facts
- put "card field stack of card monitor" into ilsi_stack
- end if
- if hilight of card button "step" = false then
- put "" into ilsi_step
- else
- put "monitor" into ilsi_step
- end if
- if card field "chain" = "Backward Chain" then
- put "backward" into direction
- initXrules card field goal
- else
- put "forward" into direction
- initXrules
- end if
- chain direction
- end mouseUp
-
-
-
- -- part 7 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=6 top=324 right=338 bottom=224
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 22
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: goal
- ----- HyperTalk script -----
- on returnInField
- global direction, ilsi_trace, ilsi_facts, ilsi_stack, ilsi_step
-
- put "" into card field "trace"
- put "" into card field "facts"
- put "" into card field "stack"
- if hilight of card button "trace" = false then
- put "" into ilsi_trace
- put "" into ilsi_facts
- put "" into ilsi_stack
- else
- put "card field trace of card monitor" into ilsi_trace
- put "card field facts of card monitor" into ilsi_facts
- put "card field stack of card monitor" into ilsi_stack
- end if
- if hilight of card button "step" = false then
- put "" into ilsi_step
- else
- put "monitor" into ilsi_step
- end if
- if card field "chain" = "Backward Chain" then
- put "backward" into direction
- initXrules card field goal
- else
- put "forward" into direction
- initXrules
- end if
- chain direction
- end returnInField
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: 8005
- -- rect: left=8 top=2 right=17 bottom=65
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: trace
- ----- HyperTalk script -----
- on mouseUp
- global ilsi_trace, ilsi_facts, ilsi_stack
-
- set hilight of card button trace to not hilight of card button trace
- if hilight of card button "trace" = false then
- put "" into ilsi_trace
- put "" into ilsi_facts
- put "" into ilsi_stack
- else
- put "card field trace of card monitor" into ilsi_trace
- put "card field facts of card monitor" into ilsi_facts
- put "card field stack of card monitor" into ilsi_stack
- end if
- end mouseUp
-
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: 8005
- -- rect: left=68 top=2 right=17 bottom=126
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: step
- ----- HyperTalk script -----
- on mouseUp
- global ilsi_step
-
- set hilight of card button step to not hilight of card button step
- if hilight of card button "step" = false then
- put "" into ilsi_step
- else
- put "monitor" into ilsi_step
- end if
- end mouseUp
-
-
-
- -- part 13 (field)
- -- low flags: 01
- -- high flags: 0007
- -- rect: left=6 top=173 right=305 bottom=314
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 22
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: facts
-
-
- -- part 14 (field)
- -- low flags: 01
- -- high flags: 0007
- -- rect: left=322 top=173 right=305 bottom=506
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 22
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: stack
-
-
- -- part 16 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=385 top=1 right=16 bottom=506
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: chain
- ----- HyperTalk script -----
- on mouseUp
- global direction
-
- if card field "chain" = "Forward Chain" then
- put "Backward Chain" into card field "chain" of card "monitor"
- put "backward" into direction
- else
- put "Forward Chain" into card field "chain" of card "monitor"
- put "forward" into direction
- end if
- end mouseUp
-
-
-
- -- part 17 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=282 top=314 right=337 bottom=307
- -- title width / last selected line: 0
- -- icon id / first selected line: 26865 / 26865
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next
- ----- HyperTalk script -----
- on mouseUp
- global saved_card
-
- if saved_card <> "" then
- go to saved_card
- else
- go to next card
- end if
- end mouseUp
-
-
-
- -- part contents for card part 16
- ----- text -----
- Backward Chain